<!-- 提示选择项目之后可以查看 -->
<template>
	
	<view class="container" v-if="ifShow">
		<view class="img">
			<image src="../../static/choose.png" />
		</view>
	  	<view class="take"></view>
	
       <view class="text">请在机器上选择项目</view>
	   <view class="takePlace"></view>
        <button  type="primary" @click="putOut">导出</button>
	</view>
	
</template>

<script>
	export default {
		data() {
			return {
				timer: null,
				ifShow: true,
				type: 1,
			}
		},
		onLoad() {
			let _that = this;
			
			this.timer = setInterval(()=> {
				_that.$myRequest("/args/searchMode","GET",null,(res)=> {
					if(res.data.mode!==0){
						clearInterval(_that.timer)
						uni.redirectTo({
							url:"/pages/index/poll-up?itemName="+res.data.modemsg+"&number="+res.data.number,
						})
					}
				})
			},300)
		},
		methods: {
			putOut(){
				uni.navigateTo({
					url:"/pages/index/item"
				})
			}
		}
	}
</script>

<style>
	.container{
		height:100%;
		width:100%;
		position:fixed;
		display: flex;
		flex-direction: column;
		align-item: center;
		padding-top: 150rpx;
		/* justify-content: center; */
	 
	}
	.text{
		text-align: center;
	}
	.takePlace{
		height:10%;
	}
	.take{
		height:10%;
	}
	.img{
		height:30%;
	}
	image{
		margin-left: 180rpx;
		height:500rpx;
		width:460rpx;
		
	}
	button{
		height:80rpx;
		line-height: 80rpx;
		width:500rpx;
		box-shadow:10rpx 10rpx 5rpx  grey ;
	}
	
button{
	
}
</style>
